package timing.ukulele.gateway.http.api;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import reactor.core.publisher.Mono;
import timing.ukulele.common.data.ResponseData;

import java.util.Map;
import java.util.Set;

@HttpExchange("/portal")
public interface PortalApi {
    @GetExchange("/role/resource/tenant/{username}")
    Mono<ResponseData<Map<String, Set<String>>>> findByUsername(@PathVariable("username") String var1, @RequestHeader("X-TENANT") Long var2);

}
